home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.5 KB | 122 lines | [TEXT/MPS ] |
- /*
- File: AppleScript.idl
-
- Contains: AppleScript Specific Interfaces.
-
- Version: Technology: AppleScript 1.1
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
- #ifndef __APPLESCRIPT_IDL__
- #define __APPLESCRIPT_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef __ERRORS_IDL__
- #include <Errors.idl>
- #endif
- #ifndef __APPLEEVENTS_IDL__
- #include <AppleEvents.idl>
- #endif
- #ifndef __OSA_IDL__
- #include <OSA.idl>
- #endif
- #ifndef __TEXTEDIT_IDL__
- #include <TextEdit.idl>
- #endif
-
- #ifdef __SOMIDL__
-
- #if FOR_SYSTEM7_ONLY
- /*
- *************************************************************************
- Types and Constants
- *************************************************************************
- */
- /*
- The specific type for the AppleScript instance of the
- Open Scripting Architecture type.
- */
- /*
- *************************************************************************
- Component Selectors
- *************************************************************************
- */
- /*
- *************************************************************************
- OSAGetScriptInfo Selectors
- *************************************************************************
- */
- /*
- This selector is used to query a context as to whether it contains
- a handler for the kAEOpenDocuments event. This allows "applets" to be
- distinguished from "droplets." OSAGetScriptInfo returns false if
- there is no kAEOpenDocuments handler, and returns the error value
- errOSAInvalidAccess if the input is not a context.
- */
- /*
- *************************************************************************
- Initialization
- *************************************************************************
- */
- /*
- ComponentCallNow(kASSelectInit, 28);
- This call can be used to explicitly initialize AppleScript. If it is
- not called, the a scripting size resource is looked for and used. If
- there is no scripting size resource, then the constants listed below
- are used. If at any stage (the init call, the size resource, the
- defaults) any of these parameters are zero, then parameters from the
- next stage are used. ModeFlags are not currently used.
- Errors:
- errOSASystemError initialization failed
- */
- /*
- These values will be used if ASInit is not called explicitly, or if any
- of ASInit's parameters are zero:
- */
- /*
- *************************************************************************
- Source Styles
- *************************************************************************
- */
- /*
- ComponentCallNow(kASSelectSetSourceStyles, 4);
- Errors:
- errOSASystemError operation failed
- */
- /*
- ComponentCallNow(kASSelectGetSourceStyles, 4);
- Errors:
- errOSASystemError operation failed
- */
- /*
- ComponentCallNow(kASSelectGetSourceStyleNames, 8);
- This call returns an AEList of styled text descriptors the names of the
- source styles in the current dialect. The order of the names corresponds
- to the order of the source style constants, below. The style of each
- name is the same as the styles returned by ASGetSourceStyles.
-
- Errors:
- errOSASystemError operation failed
- */
- /*
- Elements of STHandle correspond to following categories of tokens, and
- accessed through following index constants:
- */
- /* Gestalt selectors for AppleScript */
- #endif
-
- #endif /* __SOMIDL__ */
-
- #endif /* __APPLESCRIPT_IDL__ */
-
-